[Main] [Docs] [Registration] [Installs] [Links]
WHDLoad's dumps and logfiles
Mainly for debugging purposes WHDLoad can create various dump and logfiles.
Memory dump
A memory dump is the whole memory used by the installed program written to a
file. The size of the dump depends on the installed program (it is equal to
the value of ws_BaseMemSize from the Slave structure). A memory dump will be
created if the DebugKey is pressed or after an
error the CoreDump gadget will be activated. The name of the memory dump file
created is ".whdl_memory". The default location is "PROGDIR:" but can be
changed with the CoreDumpPath option. An
existing file with the same name will always be overwritten. If the installed
program uses additional Fast-Memory, it is saved under the filename
".whdl_expmem".
Register dump
The register dump contains the complete status of the CPU (including MMU), the
Cia and the Custom chips. Some Cia and Custom registers are not readable,
these are only contained in the dump file if Snoop mode was active. The information will be
written to an ASCII file with some highlighting done using Escape sequences
(using CSI - ControlSequenceIntroducer, decimal 155). To view, a program which
supports Escape sequences is recommended (e.g. More, MuchMore, Multiview,
...). The name of the dump file is ".whdl_register", the default location is
"PROGDIR:" but can be changed with the CoreDumpPath option. If a file with the same
name already exists, the dump will be appended - otherwise a new file will be
created.
File access log
All disk accesses will be logged if the FileLog
option has been activated. This feature will be very useful to analyze the
disk operations of the installed program for debugging and optimizing
purposes. Because the FileLog option disables
caching of files and disk images it is also useful to simulate and check the
operation similar to a low memory situation where WHDLoad can't cache
anything. The following resload function will create an entry in the log file:
- resload_DiskLoad
- resload_LoadFile
- resload_LoadFileDecrunch
- resload_LoadFileOffset
- resload_SaveFile
- resload_SaveFileOffset
Each file access via the functions above creates one line in the log file, the
line identifies the called function and all the parameters. The information
will be written to an ASCII file, the name of the dump file is
".whdl_filelog", the default location is "PROGDIR:" but can be changed with
the CoreDumpPath option.
[Main] [Docs] [Registration] [Installs] [Links]